package com.graduation.springbootinit.model.entity.ShopPart;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("shop_part_orders")
public class Order {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String orderNo;
    
    private Long userId;
    
    private Long storeId;
    
    private BigDecimal totalAmount;
    
    private Integer status;
    
    private Long addressId;
    
    private Date paymentTime;
    
    private Date deliveryTime;
    
    private Date finishTime;
    
    private Date createdAt;
    
    private Date updatedAt;
    
    /**
     * 订单支付超时时间（毫秒）
     */
    public static final long ORDER_TIMEOUT = 30 * 60 * 1000; // 30分钟
} 